begintownscript;
variables;
int choice;
body;
beginstate INIT_STATE;
    set_name(10, "Nhyssa");
    set_level(10, 35);
    set_special_ability(10, 19);
    put_object_on_space(22, 6, 5);
break;
beginstate EXIT_STATE;
break;
beginstate START_STATE;
break;
beginstate 10;
    if (get_flag(7, 0) == 0) {
        message_dialog("You see a strange crystal which shoots a piercing ray. It's a beam projector. They are used to keep people safe.", "But since the naga isn't here, shouldn't these things be turned off?");
        set_flag(7, 0, 1);
        }
break; 
beginstate 11;
    if (get_flag(7, 1) == 0) {
        message_dialog("Bad. The beams are blocking the way in to the naga lair. Worse, you haven't found any switches or something which would do the trick.", "Worst, how could you ever manage to turn off the beams without freeing the family of hydras here?");
        set_flag(7, 1, 1);
        }
break; 
beginstate 12;
    if (get_flag(7, 2) == 0) {
        message_dialog("There's a unused mirror in this room. Rough spots on the ground indicate that someone has been pushing around it.", "However, the spots don't lead to from where you came from. They lead into the east wall of the room.");
        set_flag(7, 2, 1);
        }
break; 
beginstate 13;
    if (get_flag(7, 3) == 0) {
        message_dialog("This room is filled with rests of humans. The floor has sparkling runes on it. They remind of the four pillars to the north.", "(These are lightning pillars. They might not do any harmless things. If you want to explore, it is recommened to save game first.)");
        set_flag(7, 3, 1);
        }
break; 
beginstate 14;
    reset_dialog();
    add_dialog_str(0, "This portal sparkles unusually much. Then you realize that most sparkles come from the place where the portal leads.", 0);
    add_dialog_choice(0, "Leave portal.");
    add_dialog_choice(1, "Enter portal.");
    choice = run_dialog(0);
    if (choice == 2)
        teleport_party(12, 1, 0);
break;
beginstate 15;
    reset_dialog();
    add_dialog_str(0, "You might want to return. It is still possible.", 0);
    add_dialog_choice(0, "Stay here.");
    add_dialog_choice(1, "Return via the portal.");
    choice = run_dialog(0);
    if (choice == 2)
        teleport_party(4, 7, 0);
break;
beginstate 16;
    if (get_flag(7, 4) == 0) {
        message_dialog("It would appear that a drake has assaulted the abandoned naga lair. And not any drake, but a venom drake, also known as a wyvern.", "Strange, you're not quite sure, but you think the wyvern is sad.");
        set_flag(7, 4, 1);
        }
break; 
beginstate 17;
    if (get_flag(7, 17) == 0)
        message_dialog("This whole place is a mess.", "There must have been a big explosion recently.");
    set_flag(7, 17, 1);
break;